package com.example.JPetStore.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@TableName("users")
@Data
public class User {
    @TableId(value = "user_id",type= IdType.AUTO)
    String userId;
    @TableField("nick_name")
    String nickName;
    @TableField("password")
    String password;

    @TableField("register_timestamp")
    LocalDateTime registerTimestamp;

    @TableField("last_login_timestamp")
    LocalDateTime lastLoginTimestamp;

}
